package message.api.mail;

import message.api.mail.vo.MailReq;
import message.api.mail.vo.MailRsp;

/**
 * Created by xiaoqian on 2016/10/25.
 * 发送邮件api
 */
public interface MailApi {

    /**
     * 同步发送邮件
     * @param mailReq
     * @return
     */
    public MailRsp sendMail(MailReq mailReq);

    /**
     * 异步发送邮件
     * @param mailReq
     * @return
     */
    public MailRsp sendMailAsync(MailReq mailReq);

    /**
     * 发送html邮件
     * @param mailReq
     * @return
     */
    public MailRsp sendMimeMessage(MailReq mailReq) ;
}
